//
//  L_AboutUsVC.swift
//  letuofu
//
//  Created by WH-JS on 2020/1/19.
//  Copyright © 2020 WH-JS. All rights reserved.
//

import UIKit

class L_AboutUsVC: BaseViewControllerWithHeader {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        setuoUI()
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */


    func setuoUI() {
        safeView.backgroundColor = .xF2F2F2
        headView.backgroundColor = .white
        headTitle.text = "关于我们"
        var i = 1
        var btmView : UIView?
        while let img = UIImage.init(named: "guanyuwomen"+anyToString(i)!) {
            let imgHight = 375/img.size.width*img.size.height
            let imgView = scrollView.drawImage(named: "guanyuwomen"+anyToString(i)!) { (make) in
                if btmView == nil{
                    make.top.equalToSuperview()
                }
                else {
                    make.top.equalTo(btmView!.snp.bottom)
                }
                make.left.right.equalToSuperview()
                make.height.equalTo(imgHight)
            }
            btmView = imgView
            i+=1
        }

        if let v = btmView{
            scrollView.bottomEqualTo(v)
        }
    }
}
